export default [
  {
    path: "/",
    name: "Layout",
    redirect: "/home",
    component: () => import("@/layout/index.vue"),
    hidden: false,
    meta: { title: "布局", parentRouter: "", icon: "" },
    children: [
      {
        path: "/home",
        name: "Home",
        component: () => import("@/views/home/index.vue"),
        hidden: false,
        meta: { title: "首页", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/cesium-demo",
        name: "CesiumDemo",
        component: () => import("@/views/cesium/CesiumDemo.vue"),
        hidden: false,
        meta: { title: "Cesium示例", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/cesium-gallery",
        name: "CesiumGallery",
        component: () => import("@/views/cesium/CesiumGallery.vue"),
        hidden: false,
        meta: { title: "Cesium综合示例", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/cesium-model-show",
        name: "CesiumModelShow",
        component: () => import("@/views/cesium/CesiumModelShow.vue"),
        hidden: false,
        meta: { title: "GLB模型演示", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/cesium-draw",
        name: "CesiumDraw",
        component: () => import("@/views/cesium/CesiumDraw.vue"),
        hidden: false,
        meta: { title: "Cesium进阶绘制", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/cesium-popup",
        name: "CesiumPopup",
        component: () => import("@/views/cesium/CesiumPopup.vue"),
        hidden: false,
        meta: { title: "Cesium自定义弹窗", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/air-route",
        name: "AirRoute",
        component: () => import("@/views/cesium/CesiumAirRoute.vue"),
        hidden: false,
        meta: { title: "航线绘制", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/air-flight",
        name: "AirFlight",
        component: () => import("@/views/cesium/CesiumFlight.vue"),
        hidden: false,
        meta: { title: "飞机飞行", parentRouter: "Layout", icon: "" },
      },
      {
        path: "/layout/set",
        name: "Set",
        component: () => import("@/views/setting/index.vue"),
        hidden: false,
        meta: { title: "系统设置", parentRouter: "Layout", icon: "" },
      },
      // 删除重复定义的 cesium-demo
      {
        path: "/layout/user",
        name: "User",
        component: () => import("@/views/user/index.vue"),
        hidden: false,
        meta: { title: "超级用户", parentRouter: "Layout", icon: "" },
        children: [
          {
            path: "/layout/user/c1",
            name: "C1",
            component: () => import("@/views/user/index.vue"),
            hidden: false,
            meta: { title: "子菜单1", parentRouter: "User", icon: "" },
          },
          {
            path: "/layout/user/c2",
            name: "C2",
            component: () => import("@/views/user/index.vue"),
            hidden: false,
            meta: { title: "子菜单2", parentRouter: "User", icon: "" },
          },
          {
            path: "/layout/user/c3",
            name: "C3",
            component: () => import("@/views/user/index.vue"),
            hidden: false,
            meta: { title: "子菜单3", parentRouter: "User", icon: "" },
          },
        ],
      },
    ],
  },
];
